package com.study.testSpringBoot.login;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;

/**
 * @author wc_phz
 * @ClassName LocaleConfig
 * @Description: [ ]
 * @date 2020/4/2 15:59
 */
@Configuration
public class LocaleConfig {

    @Bean
    public LocaleResolver localeResolver(){
        System.out.println("注入localResolver了。。。");
        return new MyLocalResolver();
    }
}
